<%--
  Created by IntelliJ IDEA.
  User: HugHo
  Date: 2016/9/19
  Time: 20:43
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
  <head>
    <title>welcome</title>
  </head>
  <body>
    <%
      String username = (String) session.getAttribute("username");
      if(username != null){
    %>
      <h5>Welcome! <%= session.getAttribute("username") %></h5>
    <%
      }else{
    %>
      <h5>You need register. <a href="./register.jsp">go to register</a></h5>
    <%
      }
    %>
  </body>
</html>
